<!--通用路由-->
<script lang="ts" setup>
import {ref} from "vue";
import ColRoute from "./ColRoute.vue";
import ForumRoute from "./ForumRoute.vue";

interface Props {
  fid?: number | undefined;
  stid?: number | undefined;
}

const props = defineProps<Props>();

const data = ref(true)
</script>

<template>
  <col-route v-if="props.stid" :stid="props.stid">
    <slot/>
  </col-route>
  <forum-route v-else-if="props.fid" :fid="props.fid">
    <slot/>
  </forum-route>
</template>

<style scoped>

</style>